package shiyan4;

public class Test {
    public static void main(String[] args){
        Student ZhangSan = new Student(202131000,"张三");
        Student LiSi = new Student(202131001,"李四");

        Lab lab1 = new Lab(1,"计算机网络实验室","综101");
        Lab lab2 = new Lab(2,"组成原理实验室","综201");
        Lab lab3 = new Lab(3,"无机化学实验室","综301");
        Lab lab4 = new Lab(4,"有机化学实验室","综401");
        Lab lab5 = new Lab(5,"模拟电路实验室","综501");
        Lab lab6 = new Lab(6,"微生物培养实验室","综601");
        Lab lab7 = new Lab(7,"解剖实验室","综701");

        String[] standard1 = new String[]{"优秀","优秀","优秀","优秀","优秀","及格","优秀","及格","及格","不及格","优秀",
                "优秀","优秀","及格","优秀","及格","不及格","优秀","优秀"};
        String[] standard2 = new String[]{"优秀","优秀","优秀","优秀","优秀","优秀","优秀","优秀","优秀","优秀",
                "优秀","优秀","优秀","优秀","优秀","优秀","优秀","优秀"};

        ZhangSan.addLab(lab1);
        ZhangSan.addLab(lab2);
        ZhangSan.addLab(lab3);
        ZhangSan.addLab(lab4);
        ZhangSan.addLab(lab5);
        LiSi.addLab(lab6);
        LiSi.addLab(lab7);
        ZhangSan.evaluate(standard1);
        LiSi.evaluate(standard2);
        System.out.println("学生信息: " + ZhangSan.getName() + " " + ZhangSan.getId());
        System.out.println("统计一学期学生的实际收入: " + ZhangSan.getNetSalary());
    }
}